package cn.itsource.basic.query;


import lombok.Data;

@Data
public class BaseQuery {
    private Integer currentPage=1;
    private Integer pageSize=5;
    //额外的查询条件
    private String keywords;
    // xml 里面取的时候
    public Integer getBeginIndex(){
        return  (this.currentPage-1)*this.pageSize;
    }

}
